<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Teacher Extends MY_Controller
{	
	public function __construct()
	{
		parent::__construct();
		$this->page_auth->secure_page('teacher');
		$this->load->helper('misc');
		$this->load->model('M_teachers','mt');
		$this->view_data['system_message'] = $this->_msg();
	}
	
	
	public function index()
	{
		redirect('teacher/my_classes');
	}
	
	public function my_classes()
	{
		$this->view_data['class_list'] = $this->mt->get_classes();
	}
	
	public function my_schedules()
	{
		$this->view_data['schedules'] = $this->mt->get_schedules();
	}
	
	
}